#include "object.h"
#include "exceptions.h"
SDL_Surface *g_screen = 0;
TTF_Font * g_fdebug = 0;

Object::Object()
{
   current_frame = 0;
   px = 0;
   py = 0;
   type = 0;
   angle = 0;
}

Object::~Object()
{
    //dtor
}

i32 Object::Render()
{
    EXCEX(0xFF,"Render of generic object");
}

i32 Object::calcAngle(i32 degrees)
{
    double FPD = ((double)ANGLES) / 360 ;
    i32 ret = (i32)(FPD * degrees);
    if (ret >= ANGLES)
        ret = 0;
    return ret;
}
